import dame1.Animal;
import dame1.Bird;
import dame1.Dog;

public class Test {
    public static Animal func(int a){
        if (a==1){
            return new Dog("旺财",10);
        }
        else return new Bird();
    }
    public static void main(String[] args) {
    //多态的练习
    }
}
